package com.dudu.service;

import java.util.List;

import com.dudu.bean.ImsLogBean;
import com.dudu.bean.InterfaceLogBean;
import com.dudu.bean.SystemLogBean;
import com.dudu.model.ImsLog;
import com.dudu.model.InterfaceLog;

public interface ILogService {
	/**
	 * 系统日志
	 * @param type
	 * @param userId
	 * @param uName
	 * @param tableName
	 * @param context
	 */
	public  void log(String type, int userId, String uName,
			String tableName, String context);
	/**
	 * 查询系统 日志总条数
	 * @param paramSql
	 * @return
	 */
	public int getSysLogTotalAcount(String paramSql);
	/**
	 * 查询系统日志 记录分页
	 * @param paramSql
	 * @param pageSql
	 * @return
	 */
	public List<SystemLogBean> querySysLogAll(String paramSql,String pageSql);
	/**
	 * 第三方能力调用日志
	 * @param during
	 * @param name
	 * @param request_msg
	 * @param result_desc
	 * @param result_status
	 * @param time
	 * @param type
	 * @param phoneNum
	 */
	public void logIms(double during, String name, String request_msg, String result_desc, String result_status, String time, String type, String phoneNum);
	/**
	 * 运营平台能力调用日志
	 * @param during
	 * @param url
	 * @param request_msg
	 * @param result
	 */
	public void saveOperationPlatformLog(double during,String url,String request_msg,String result);
	/**
	 * 平台接口调用日志
	 * @param during
	 * @param name
	 * @param request_msg
	 * @param result_desc
	 * @param result_status
	 * @param time
	 * @param ip
	 * @param caller
	 */
	public void logInterface(double during, String name, String request_msg, String result_desc, String result_status, String time, String ip,String caller);
	/**
	 * 能力平台调用日志总数
	 * @param paramSql
	 * @return
	 */
	public int getInterfaceLogTotalAcount(String paramSql);
	
	/**
	 * 第三方日志查询
	 * @param paramSql
	 * @param pageSql
	 * @return
	 */
	public List<ImsLogBean> queryImsLog(String paramSql, String pageSql);
	/**
	 * 第三方调用日志总数
	 * @param paramSql
	 * @return
	 */
	public int getImsLogTotalAcount(String paramSql);
	/**
	 * 平台日志查询
	 * @param paramSql
	 * @param pageSql
	 * @return
	 */
	public List<InterfaceLogBean> queryInterfaceLog(String paramSql, String pageSql);
	
}
